package com.sayice.robotconflict.game.msg.data.send;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 对局中一帧 (Tick) 的数据
 *
 * @author shubing
 */
@Getter
@Setter
@ToString
public class GameFrameData implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /**
     * 对局时长 (毫秒)
     */
    private int gameTime;
    
    /**
     * 能量塔
     */
    private GameTowerInfo[] towers;
    
    /**
     * 机器人
     */
    private GameRobotInfo[][] robots;
    
    public GameFrameData() {
    }
    
    public GameFrameData(int gameTime, GameTowerInfo[] towers, GameRobotInfo[][] robots) {
        this.gameTime = gameTime;
        this.towers = towers;
        this.robots = robots;
    }
}
